#ifndef __KSVGEDITOR_TASK_KSVGLOADTASK_H__
#define __KSVGEDITOR_TASK_KSVGLOADTASK_H__

#include <QRunnable>
#include <QObject>
#include <QRectF>
#include <QColor>

class KExportShape;
class KDrawingGraphicsView;

class KSvgLoadTask : public QObject, public QRunnable
{
    Q_OBJECT

public:
    KSvgLoadTask(const QString& filePath,
        const QList<KExportShape*>& shapeList,
        const QRectF& sceneRect,
        const QColor& canvasColor);

    void run() override;

signals:
    void loadFinished(const QList<KExportShape*>& shapeList,
        const QRectF& sceneRect,
        const QColor& canvasColor,
        const QString& tabName);

private:
    QString m_filePath;
    QList<KExportShape*> m_shapeList;
    QRectF m_sceneRect;
    QColor m_canvasColor;
};


#endif // __KSVGEDITOR_TASK_KSVGLOADTASK_H__
